{extend name='admin@public/content'}

{block name="button"}

{/block}

{block name="content"}

<!-- 表单搜索 开始 -->
<form autocomplete="off" class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">项目ID</label>
        <div class="layui-input-inline">
            <input name="item_id" value="{$Think.get.item_id|default=''}" placeholder="请输入项目id" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">用户ID</label>
        <div class="layui-input-inline">
            <input name="wecha_id" value="{$Think.get.wecha_id|default=''}" placeholder="请输入用户ID" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">投票时间</label>
        <div class="layui-input-inline">
            <input name="touch_time" id='touch_time' value="{$Think.get.touch_time|default=''}" placeholder="请选择投票时间" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>

</form>
<script>
    window.form.render();
    window.laydate.render({range: true, elem: '#touch_time'});
</script>
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <!--{empty name='list'}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='text-left nowrap'>流水号ID</th>
            <th class='text-left nowrap'>项目ID</th>
            <th class='text-left nowrap'>投票用户id</th>
            <th class='text-left nowrap'>IP</th>
            <th class='text-left nowrap'>地址</th>
            <th class='text-left nowrap'>投票时间</th>
        </tr>
        </thead>
        <tbody>
        <!--{foreach $list as $key=>$vo}-->
        <tr>
            <td class='text-left nowrap'>{$vo.id}</td>
            <td class='text-left nowrap'><a data-title="查看详情" data-modal='/info/detail.html?id={$vo.item_id}'>{$vo.item_id}</a></td>
            <td class='text-left nowrap'>{$vo.wecha_id}</td>
            <td class='text-left nowrap'>{$vo.ip}</td>
            <td class='text-left nowrap'>{$vo.area}</td>
            <td class='text-left nowrap'>{:date('Y-m-d H:i:s',$vo.touch_time)}</td>
        </tr>
        <!--{/foreach}-->
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/empty}-->
</form>
{/block}